package com.jumi.microservice.common.constant;

/**
 * @author Dirk
 * @Date 2020-07-08 11:25
 */
public enum ResultEnum {
    /**
     * 返回状态码集
     */
    SUCCESS(200, "获取数据成功"),
    FAIL(500, "获取数据失败");

    private final Integer code;

    private final String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
